 package org.edu;

 import javax.servlet.MultipartConfigElement;
 import org.edu.common.util.oConvertUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.boot.web.servlet.MultipartConfigFactory;
 import org.springframework.cloud.openfeign.EnableFeignClients;
 import org.springframework.context.ConfigurableApplicationContext;
 import org.springframework.context.annotation.Bean;
 import org.springframework.core.env.ConfigurableEnvironment;
 import org.springframework.scheduling.annotation.EnableScheduling;
 import org.springframework.util.unit.DataSize;


 @EnableScheduling
 @SpringBootApplication(scanBasePackages = {"org.edu"})
 @EnableFeignClients(basePackages = {"org.edu"})
 public class EduPortalApplication
 {
/* 23 */   private static final Logger log = LoggerFactory.getLogger(org.edu.EduPortalApplication.class);




   public static void main(String[] args) {
     ConfigurableApplicationContext application = SpringApplication.run(org.edu.EduPortalApplication.class, args);

/* 31 */     ConfigurableEnvironment configurableEnvironment = application.getEnvironment();
/* 32 */     String port = configurableEnvironment.getProperty("server.port");
/* 33 */     String path = oConvertUtils.getString(configurableEnvironment.getProperty("server.servlet.context-path"));
/* 34 */     log.info("\n----------------------------------------------------------\n\tApplication edu-Boot is running! Access URLs:\n\tLocal: \t\thttp://localhost:" + port + path + "/doc.html\n----------------------------------------------------------");
   }




   @Bean
   public MultipartConfigElement multipartConfigElement() {
/* 42 */     MultipartConfigFactory factory = new MultipartConfigFactory();

/* 44 */     factory.setMaxFileSize(DataSize.parse("1024MB"));

/* 46 */     factory.setMaxRequestSize(DataSize.parse("1024MB"));
/* 47 */     return factory.createMultipartConfig();
   }
 }



